﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObject;

namespace GreenLife.Admin
{
    public partial class ThemLinkWeb : System.Web.UI.Page
    {
        LinkWebBO lwBO = new LinkWebBO();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (lwBO.createLinkWeb(txtName.Text, txtSite.Text))
            {
                Response.Redirect("DanhSachLinkWeb.aspx");
            }
            else
            {
                Response.Redirect("error.aspx");
            }
        }
    }
}